//这里的tpl通过ejs的转换成一个函数
import tpl from './index.tpl';
import './index.scss';
import { tplReplace } from '../../libs/utils';


export default  {
    name:'Header',
    tpl(options){
        const {url, showLeftIcon, title, showRightIcon} = options;
        return tplReplace(tpl,{
            url,
            title,
            showLeftIcon: showLeftIcon? 'block':'none',
            showRightIcon:showRightIcon?'block':'none'
        })
    }
}
